﻿using System;
using System.Drawing;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using NetExp.MediaXenter.Database;


namespace NetExp.MediaXenter.Utilities
{
    
    public class ThemesHelper
    {
        private string _nomeTema;

        public ThemesHelper(string nomeTema)
        {
            _nomeTema=nomeTema;
        }

        public ImageSource GetSfondoPrincipale()
        {
            return GetImage(Constants.IMMAGINE_NOME_SFONDO);
        }

        public ImageSource GetImage(string nomeRisorsa)
        {
            string percorso = Constants.THEMESPATH + "\\" + _nomeTema + "\\" + nomeRisorsa;
            ImageBrush img = new ImageBrush();
            img.ImageSource = new BitmapImage(new Uri(percorso, UriKind.Relative));
            return img.ImageSource;
        }
    }
}

